package mlz.a_oop;

//多个对象的内存管理
public class PersonTest02 {
    public static void main(String[] args) {
        Person p1 = new Person();
        System.out.println(p1);//001
        p1.name = "张三";
        p1.age = 18;
        p1.eat();

        Person p2 = new Person();
        System.out.println(p1);//002
        p2.name = "李四";
        p2.age = 20;
        p2.sleep("床上");


    }
}
